package com.holiday.mybatis.dao;

import com.holiday.mybatis.domain.Video;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface VideoMapper {
    Video selectByid(@Param("video_id") int videoId);

    List<Video> selectByPointAndTitleLike(@Param("point") double point, @Param("title") String title);

    int add(Video video);


    int addBatch(List<Video> list);

    int udpateVideo(Video video);

    int udpateVideoSelective(Video video);

    int deleteBycreateTimeAndprice(Map<String,Object> map);

    Video selectBaseFieldByWithResultMap(@Param("video_id") int id);
}
